<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>Xét duyệt đơn sinh viên</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/style.css"/>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
    </script>
    <script>
        $(document).ready(function() {
            $("#an").hide();
            $("#koduyet").click(function() {
                $("#duyet").hide();
                $("#koduyet").hide();
                $("#an").show();
            });
        });
    </script>
    <style type="text/css">
        body{
            background-color: gray;
        }
        #wapper{
            background-color: white;
            width: 1200px;
            margin: 0px auto;
            height: 960px;
            border: 1px solid #f7f7f7;
        }
        #contents{
            width: 1024px;
            margin-left: 250px;
            font-size: 20px;
        }
        #contents p a{
            font-weight: bold;
        }
        #show{
            padding-top: 10px;
            margin-left: 350px;
            float:left;
        }
        #duyet{
            height:30px;
            line-height: 30px;
            width:75px;
            font-weight: bold;
        }
        #koduyet{
            margin-right: 650px;
            float: right;
            margin-top: 10px;
            height: 30px;
            line-height: 30px;
            width:100px;
            font-weight: bold;
        }
        #inp1{
            margin-top: 10px;
            width:100px;
            height:30px;
            line-height: 30px;
            font-weight: bold;
            font-size: 14px;
        }
        #submit #an{
            margin-left:250px;
        }
    </style>
    <body>
        <div id="nav-top" style="width:1480px; margin-top:-10px">
            <img  id="icon" style="margin-left:130px;" src="<?php echo base_url(); ?>public/img/logo-nav.png" alt="Quan ly ho so"/>
            <div class="nav-nav">
                <h1 style="font-size:30px; color: white; margin-left: 75px">DUYỆT GIẤY TỜ, BIỂU MẪU </h1>
            </div> <!--end .nav-nav-->
        </div><!--end.nav-top-->
        <div id="wapper">
            <div id="contents">
                <?php
                foreach ($svform as $value) {
                    ?>
                    <p>Mã đơn sinh viên: <a><?php echo $value['Ma_Don_SV'] ?></a></p>
                    <p>Họ và tên: <a><?php echo $value['HoTen_SV'] ?></a> </p>
                    <p>MSSV: <a><?php echo $value['Ma_SV'] ?></a></p>
                    <p>Ngày sinh: <a><?php echo $value['NgaySinh_SV'] ?></a></p>
                    <p>Ngành học: <a><?php echo $value['Nganh_SV'] ?></a></p>
                    <p>Lớp: <a><?php echo $value['Lop_SV'] ?></a></p>
                    <p>Hệ đào tạo: <a><?php echo $value['HeDaoTao_SV'] ?></a></p>
                    <p>Khóa học: <a><?php echo $value['KhoaHoc_SV'] ?></a></p>

                </div><!--End #contents-->
                <div id="submit">
                    <form id="show" action="<?php echo base_url() ?>canbo/updatestt" method="post">
                        <input type="hidden" name="Ma_Don_SV" value="<?php echo $value['Ma_Don_SV']; ?>">
                        <button type="submit" name="duyet" value="1" id="duyet">Duyệt</button>
                    </form>
                    <button type="submit" name="koduyet" value="2" id="koduyet">Không Duyệt</button><br>
                    <form id="an" action="<?php echo base_url() ?>canbo/updatestt" method="post">
                        <input type="hidden" name="Ma_Don_SV" value="<?php echo $value['Ma_Don_SV']; ?>">
                        <textarea name="notes" rows="10" cols="50"></textarea><br>
                        <input id="inp1" type="submit" name="submit1" value="Xác Nhận">
                    </form>
                </div><!--End #submit-->
                <?php
            }
            ?>
        </div><!--End #wapper-->
    </body>
</html>
